package com.fire.chat.entity.po;


import com.baomidou.mybatisplus.annotation.TableField;
import com.fire.chat.common.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 * 角色表
 * </p>
 *
 * @author xiejiarong
 * @since 2020-11-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel("角色表")
public class SysRole extends BaseEntity {

private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "角色编码")
    private String code;

    @ApiModelProperty(value = "角色名字")
    private String name;

    @ApiModelProperty(value = "逻辑删除字段 1：已删除 0：未删除")
    private Integer isDelete;

    @ApiModelProperty(value = "角色所拥有的菜单列表")
    @TableField(exist = false)
    private List<SysMenu> menus;


}
